package com.example.demo.testClass;

import com.example.demo.utils.MySerializableClass;

public class TestClass extends MySerializableClass {
    public transient int ttt=555;
    // 添加 serialVersionUID 字段
    private static long serialVersionUID = 0L;
    String name;
    int age;

    public TestClass(String name, int age) {
        serialVersionUID++;
        this.name = name;
        this.age = age;
    }

    public TestClass() {
    }

    public void show(){
        System.out.println("name=" + name);
        System.out.println("age=" + age);
    }

    public long getSerialVersionUID(){
        return serialVersionUID;
    }
}
